{{- $context := . -}}
{{- range $repo := .Values.delivery.internal.argocd.repositories -}}
{{- with $context -}}
---
apiVersion: v1
kind: Secret
metadata:
  annotations:
    managed-by: argocd.argoproj.io
  {{- include "helm_lib_module_labels" (list . (dict "argocd.argoproj.io/secret-type" "repository")) | nindent 2 }}
  name: repo-{{ $repo.name }}
  namespace: d8-{{ $.Chart.Name }}
type: Opaque
stringData:
  type: helm
  enableOCI: "true"
  {{ $repo | toYaml | nindent 2 }}
{{ end }}
{{ end }}
